From dbc0684d7390a31c5738351e60aaef52013b0a25 Mon Sep 17 00:00:00 2001 From: Kazuhiro Ito Date: Wed, 18 Dec 2013 13:01:30 +0800 Subject: [PATCH] make-mode.el (makefile-fill-paragraph): Fix infloop. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/make-mode.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1abe9eb62af..00b0115a6f6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-12-18 Kazuhiro Ito (tiny change) + + * progmodes/make-mode.el (makefile-fill-paragraph): Fix infloop + (Bug#13914). + 2013-12-18 Shigeru Fukaya * apropos.el (apropos-words-to-regexp): Fix algorithm (Bug#13946). diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 3c0871e57b6..01d1e76457d 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -1300,7 +1300,8 @@ Fill comments, backslashed lines, and variable definitions specially." (point)))) (end (save-excursion - (while (= (preceding-char) ?\\) + (while (and (= (preceding-char) ?\\) + (not (eobp))) (end-of-line 2)) (point)))) (save-restriction -- 2.30.2